<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
		
		 jQuery.fn.rowspan = function(colIdx) { //封装的一个JQuery小插件 
			 return this.each(function(){ 
			 var that; 
			 $('tr', this).each(function(row) { 
			 $('td:eq('+colIdx+')', this).filter(':visible').each(function(col) { 
			 if (that!=null && $(this).html() == $(that).html()) { 
			 rowspan = $(that).attr("rowSpan"); 
			 if (rowspan == undefined) { 
			 $(that).attr("rowSpan",1); 
			 rowspan = $(that).attr("rowSpan"); } 
			 rowspan = Number(rowspan)+1; 
			 $(that).attr("rowSpan",rowspan); 
			 $(this).hide(); 
			 } else { 
			 that = this; 
			 } 
			 }); 
			 }); 
			 }); 
			 } 
			 $(function() { 
			 	$('#tab').rowspan(0);//传入的参数是对应的列数从0开始，哪一列有相同的内容就输入对应的列数值 
			 }); 
	
</script>
<title>楼栋业态汇总</title>
</head>
<body>
	<div class="content-box margin-bottom-20">
		<h3 class="detail-header border-all border-bottom-none">各业态实际导入房源数据</h3>
		<table class="detail-table" id="tab">
			<tr class="bg-gray">
				<th class="column1">楼栋名称</th>
				<th class="column2">业态</th>
				<th class="column3">自持货值</th>
				<th class="column4">自持面积 <br>(万m2)
				</th>
				<th class="column5">总户数 <br>(户)
				</th>
				<th class="column6">可售面积(万m2)/ <br>可售车位(个)
				</th>
				<th class="column7">地上可售面积(万m2)/ <br>地上机动车位(个)
				</th>
				<th class="column8">地下可售面积(万m2)/ <br>地下机动车位(个)
				</th>
			</tr>
			<c:forEach var="data" items="${industData}" varStatus="y">
				<tr>

					<td class="column1">汇总</td>


					<td class="column2">${data.industMark}</td>
					<td class="column3">${data.targetValue}</td>
					<td class="column4">${data.selfSustaiAcreag}</td>
					<td class="column5">${data.totalHouse}</td>
					<td class="column6">${data.salableAcreag}</td>
					<td class="column7">${data.groundSalesAcreag}</td>
					<td class="column8">${data.undergSalesAcreag}</td>
				</tr>
			</c:forEach>
			<tr class="bg-gray">
				<th colspan="8" style="height: 10px;"></th>
			</tr>
			<c:forEach var="data" items="${industDataList}">
				<tr>
					<td class="column1">${data.pName}</td>
					<td class="column2">${data.industMark}</td>
					<td class="column3">${data.targetValue}</td>
					<td class="column4">${data.selfSustaiAcreag}</td>
					<td class="column5">${data.totalHouse}</td>
					<td class="column6">${data.salableAcreag}</td>
					<td class="column7">${data.groundSalesAcreag}</td>
					<td class="column8">${data.undergSalesAcreag}</td>
				</tr>
			</c:forEach>

		</table>
	</div>
</body>
</html>